package com.example.dataextraction.model.vo;

import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @author Zenan Chen
 * @date 2023/3/28 10:53
 */
public class CopyTableVO {
    @NotNull(message = "fromDataSourceCode不能为空")//空校验
    @NotBlank //不能为空字符串
    @ApiModelProperty(value = "来源数据源编码", required = true, example = "DAP")
    private String fromDataSourceCode;
    @NotNull(message = "fromDataBaseName不能为空")//空校验
    @NotBlank //不能为空字符串
    @ApiModelProperty(value = "来源数据库名称", required = true, example = "dap")
    private String fromDataBaseName;
    @NotNull(message = "fromTableName不能为空")//空校验
    @NotBlank //不能为空字符串
    @ApiModelProperty(value = "来源表名称", required = true, example = "db_tbls")
    private String fromTableName;
    @NotNull(message = "toDataSourceCode不能为空")//空校验
    @NotBlank //不能为空字符串
    @ApiModelProperty(value = "目标数据源编码", required = true, example = "PORTAL")
    private String toDataSourceCode;
    @NotNull(message = "toDataBaseName不能为空")//空校验
    @NotBlank //不能为空字符串
    @ApiModelProperty(value = "目标数据库名称", required = true, example = "portal_czn")
    private String toDataBaseName;
    @NotNull(message = "toTableName不能为空")//空校验
    @NotBlank //不能为空字符串
    @ApiModelProperty(value = "目标表名称", required = true, example = "czn_test123")
    private String toTableName;

    @ApiModelProperty(value = "是否覆盖")
    private Boolean cover;

    @ApiModelProperty(value = "分批抽数数量，默认5000")
    private Integer limit = 5000;

    public Integer getLimit() {
        return limit;
    }

    public void setLimit(Integer limit) {
        this.limit = limit;
    }

    public String getFromDataSourceCode() {
        return fromDataSourceCode;
    }

    public void setFromDataSourceCode(String fromDataSourceCode) {
        this.fromDataSourceCode = fromDataSourceCode;
    }

    public String getFromDataBaseName() {
        return fromDataBaseName;
    }

    public void setFromDataBaseName(String fromDataBaseName) {
        this.fromDataBaseName = fromDataBaseName;
    }

    public String getFromTableName() {
        return fromTableName;
    }

    public void setFromTableName(String fromTableName) {
        this.fromTableName = fromTableName;
    }

    public String getToDataSourceCode() {
        return toDataSourceCode;
    }

    public void setToDataSourceCode(String toDataSourceCode) {
        this.toDataSourceCode = toDataSourceCode;
    }

    public String getToDataBaseName() {
        return toDataBaseName;
    }

    public void setToDataBaseName(String toDataBaseName) {
        this.toDataBaseName = toDataBaseName;
    }

    public String getToTableName() {
        return toTableName;
    }

    public void setToTableName(String toTableName) {
        this.toTableName = toTableName;
    }

    public Boolean getCover() {
        return cover;
    }

    public void setCover(Boolean cover) {
        this.cover = cover;
    }
}
